package App.Config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * spring bean
 * </p>
 *
 * @author 王坚
 * @date 2021-06-17 14:33
 */
@Configuration
public class BeanConfig {

    @Bean
    public SMSConfig createSms() {
        return SMSConfig.builder().build();
    }

    @Bean
    public JsonWebTokenConfig createWebToken() {
        return JsonWebTokenConfig.builder().secret("lifa_supersecret_!201904280001").expiration(15552000000l).build();
    }
}
